package com.qf.pojo;

/**
 * @author 高圆圆
 * @date 2023/6/6 11:58
 * 购物车项
 */
public class CartItem {

    private Product product ;//商品实体
    private int count ;      //商品数量
    private double subMoney ; // 小计金额

    public CartItem() {
    }

    public Product getProduct() {
        return product;
    }

    public void setProduct(Product product) {
        this.product = product;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    //小计金额计算出来
    public double getSubMoney() {
        return product.getShop_price()*count;
    }
/*
    public void setSubMoney(double subMoney) {
        this.subMoney = subMoney;
    }*/
}
